<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('/v1.0/api/', function () {
    Route::rule('login', 'index/login');
    Route::rule('key/save', 'index/save');
    Route::rule('key/delete', 'index/delete');
    Route::rule('key/inc', 'index/inc');  //关键字次数自增
    Route::rule('key/get', 'index/getkey');  //查询关键字回复
    Route::rule('key/list', 'index/list');  //列表
    Route::rule('key/upload', 'index/upload');  //上传
    Route::rule('key/logList', 'index/logList');  //列表
    Route::rule('key/logSave', 'index/logSave');  //新建
    Route::rule('key/hotList', 'index/hotList');  //热门关键字

    //banner
    Route::rule('banner/save', 'banner/save');  
    Route::rule('banner/delete', 'banner/delete');  
    Route::rule('banner/list', 'banner/list');

    //info
    Route::rule('info/save', 'info/save');  
    Route::rule('info/delete', 'info/delete');  
    Route::rule('info/list', 'info/list');  

    //Type
    Route::rule('type/save', 'type/save');  
    Route::rule('type/delete', 'type/delete');  
    Route::rule('type/list', 'type/list');  
    
    
})->allowCrossDomain();

